package cn.kzgg.user.mapper;

import cn.kzgg.basic.dto.LoginDto;
import cn.kzgg.user.domain.Logininfo;
import cn.kzgg.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author KZGG
 * @since 2022-06-17
 */

public interface LogininfoMapper extends BaseMapper<Logininfo> {

    /**
     * 管理员登录
     * @param dto
     * @return
     */
    Logininfo loadByUsernameAndType(@Param("username") String username,@Param("type") Integer type);


    /**
     * 连表查询，根据userid查logininfo
     * @param userId
     * @return
     */
    Logininfo loadByUserId(Long userId);
}
